package com.lifeibiao.作业0214;

public class SalesEmployee extends ColaEmployee {
    private double saleNum;//销售额
    private double riseRate;//提成率

    @Override
    public double getSalary(int month) {
        double monthSalary = saleNum * riseRate;
        return monthSalary += super.getSalary(month);
    }

    public SalesEmployee(String emName, int emBirthday, double saleNum, double riseRate) {
        super(emName, emBirthday);
        this.saleNum = saleNum;
        this.riseRate = riseRate;
    }

    public SalesEmployee() {
    }

    public double getSaleNum() {
        return saleNum;
    }

    public void setSaleNum(int saleNum) {
        this.saleNum = saleNum;
    }

    public double getRiseRate() {
        return riseRate;
    }

    public void setRiseRate(double riseRate) {
        this.riseRate = riseRate;
    }
}
